package net.awpspace.matheasy;

import javax.microedition.lcdui.Font;
import javax.microedition.lcdui.Graphics;
import javax.microedition.lcdui.Image;

public class Label {
	public Image imgLabel;
	public String label;
	public int x, y;
	public int offsetX, offsetY;

	public Label(Image img, int x, int y) {
		this.imgLabel = img;
		this.x = x;
		this.y = y;
		this.label="";
		offsetY = 4;
		offsetX = 10;
	}

	public void setLabel(String label) {
		this.label = label;
	}

	public void draw(Graphics g) {
		g.drawImage(imgLabel, x, y, 0);
		g.drawString(label, x + offsetX, y + offsetY, 0);
	}
}
